import {
	request
} from './index.js'


/* 广告-轮播图 */
export function getBannerList(params,method='GET') {
	return request({
		url: '/banner/bannerTable/list',
		method:method,
		data: params
	})
}
//分類
export function getTvCategory(params,method='GET') {
	return request({
		url: '/tvplotintroduction/tvClassification/list',
		method:method,
		data: params
	})
}


//小劇場列表
export function getTheaterList(params,method='GET') {
	return request({
		url: '/tvplotintroduction/tvManageList/list',
		method:method,
		data: params
	})
}
//剧集列表
export function listTvGatherManageByMainId(params,method='GET') {
	return request({
		url: '/tvplotintroduction/tvManageList/listTvGatherManageByMainId',
		method:method,
		data: params
	})
}
//添加观看记录
export function addViewRecord(params,method='POST') {
	return request({
		url: '/userrecords/viewingRecords/add',
		method:method,
		data: params
	})
}
//查询观看记录
export function getUserViewRecord(params,method='GET') {
	return request({
		url: '/userrecords/viewingRecords/queryUserViewingRecords',
		method:method,
		data: params
	})
}


/**
 * 剧情
 */
export function getPlotList(params,method='GET') {
	return request({
		url: '/tvplotintroduction/tvPlotIntroduction/list',
		method:method,
		data: params
	})
}